#include <iostream>
#include <functional>
#include "Dict.hpp"
#include "Server.hpp"

int main()
{
    Dict dictionay("./dict.txt");
    func_t t = std::bind(&Dict::Translate, &dictionay, std::placeholders::_1);

    UdpServer server(t);
    server.InitServer();
    server.Start();

    return 0;
}